﻿<!DOCTYPE html>
<html>
<head>
  <title>GoJS Arrowheads</title>
  <!-- Copyright 1998-2020 by Northwoods Software Corporation. -->
  <meta name="description" content="Show all of the predefined kinds of arrowheads for links." />
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <script src="../samples/assets/require.js"></script>
  <script src="../assets/js/goSamples.js"></script>
  <script>
    function init() {
      require(["arrowheadsScript"], function(app) {
        app.init();
      });
    }
  </script>
</head>
<body onload="init()">
  <div id="sample">
    <!-- The DIV for the Diagram needs an explicit size or else we won't see anything.
       Also add a border to help see the edges. -->
    <div id="myDiagramDiv" style="border: solid 1px black; width:600px; height:500px"></div>
    <div id="myArrowheadInfo" style="color:red"></div>
    <p>
      This sample displays all predefined GoJS arrowheads. Select or hover over a Node or its Link to see the names of the arrowheads
      on the Link.
    </p>
    <p>
      Each Link shows two arrowheads. The Link template has a Shape whose <a>Shape.toArrow</a> property is bound to an arrowhead
      name. A different Shape in the template has its <a>Shape.fromArrow</a> property bound to a different arrowhead name.
      Each arrowhead has been scaled up to make it more easily visible.
    </p>
    <p>
      See the definitions of all these arrowheads in the file: <a href="../extensionsTS/Arrowheads.ts" target="_blank">Arrowheads.ts</a>.
    </p>
    <p>
      For predefined shape geometries, see the <a href="shapes.html">Shapes</a> sample.
    </p>
  </div>

</body>
</html>